package com.qf.mrmd.result;

public class ResponseData  {


    private String ecode;

    private String info;

    private Object data;

//    有参构造
    public ResponseData(String ecode, String info, Object data) {
        this.ecode = ecode;
        this.info = info;
        this.data = data;
    }

    public ResponseData(ResponseCode responsecode,Object data) {
        this.ecode = responsecode.getEcode();
        this.info = responsecode.getInfo();
        this.data = data;
    }

    public ResponseData(String ecode, String info) {
        this.ecode = ecode;
        this.info = info;
    }

    public ResponseData(ResponseCode responsecode) {
        this.ecode = responsecode.getEcode();
        this.info = responsecode.getInfo();


    }


//    无参构造
    public ResponseData() {
    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
